import request from '@/utils/request'

export function getNotices(data) {
  return request({
    url: '/api/sysNotice/page',
    method: 'post',
    data
  })
}

export function addNotice(data) {
  return request({
    url: '/api/sysNotice/add',
    method: 'post',
    data
  })
}

export function updateNotice(data) {
  return request({
    url: '/api/sysNotice/update',
    method: 'post',
    data
  })
}

export function deleteNotice(id) {
  return request({
    url: '/api/sysNotice/delete',
    method: 'post',
    data: { id }
  })
}

export function publicNotice(id) {
  return request({
    url: '/api/sysNotice/public',
    method: 'post',
    data: { id }
  })
}
